/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lestr.udm.core.impl.managers.filesystem;

import org.lestr.udm.core.api.*;
import java.io.InputStream;
import org.lestr.udm.core.util.BasicDataTypes;

/**
 *
 * @author pibonnin
 */
public class FolderDataType implements IDataType {


    static IDataType instance = new FolderDataType();


    @Override
    public String getId() {
        return "folder";
    }


    @Override
    public IDataType getParentType() {
        return BasicDataTypes.COMPOSITE;
    }


    @Override
    public Object readValue(InputStream stream) {
        return stream;
    }


    @Override
    public InputStream writeValue(Object value) {
        return (InputStream) value;
    }
    
    
}// END Class IDataType
